<?php
/*
 * Plugin Name: Price Travel Date Widget
 * Version: 1.0
 * Plugin URI: http://code.google.com/p/widgetapps-wp-travelplugin/
 * Description: Allows the user to find posts by price.
 * Author: Darryl Patterson
 * Author URI: http://www.pattersons.net/
 */

class WidgetApps_Widget_Price extends WP_Widget {
	
	function WidgetApps_Widget_Price()
	{
		$widget_ops = array('classname' => 'WidgetApps_Widget_Price', 'description' => __( "Allows the user to find posts by price.") );
    	$control_ops = array('width' => 200, 'height' => 300);
    	parent::WP_Widget('WidgetApps_Widget_Price', __('Travel Price Search'), $widget_ops, $control_ops);
	}
	
	function widget($args, $instance)
	{
		// See http://codex.wordpress.org/Template_Tags/get_posts
		//get_posts('arguments');
?>
<h3>Price Range</h3>

|<ul>
	<li><a href="/watw/price?watw_range=1">$0 - $499</a></li>
	<li><a href="/watw/price?watw_range=2">$500 - $999</a></li>
	<li><a href="/watw/price?watw_range=3">$1000 - $1499</a></li>
	<li><a href="/watw/price?watw_range=4">$1500 - $1999</a></li>
	<li><a href="/watw/price?watw_range=5">$2000 +</a></li>
</ul>
<?php
	}
	
	function update($instance)
	{
		$instance = $old_instance;
 
		return $instance;
	}
	
	function form($instance)
	{
		echo '<p>Nothing to say here.</p>';
	}
	
	static function getSearchResults()
	{
		
	}
}
